<!--
 * @Author: your name
 * @Date: 2020-10-18 12:54:57
 * @LastEditTime: 2020-10-18 12:57:44
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \vue3\src\components\header\index.vue
-->
<template>
  <header class="header">
      <h1>
          <slot></slot>
      </h1>
  </header>
</template>

<script>
export default {
    name:"MyHeader"
}
</script>

<style lang="scss" scope>
.header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: .44rem;
    background-color: #ed4040;
    text-align: center;
    line-height: .44rem;

    h1 {
      font-size: .18rem;
      color: #fff;
    }
  }
</style>